{
    let arr = Array.of(3, 4, 7, 9, 11)
    console.log('arr=', arr)


    let empty = Array.of()
    console.log('empty=', empty)
}

{
    let p = document.querySelectorAll('p')
    let aArr = Array.from(p)
    aArr.forEach(function (item) {
        //textContent获取dom节点的内容
        console.log(item.textContent)
    })


    console.log(Array.from([1, 3, 5], function (item) {
        return item * 2

    }))
}

{
    console.log('fill-7', [1, 'a', undefined].fill(7))
    console.log('fill,pos', ['a', 'b', 'c'].fill(7, 1, 3))
}

{
    for (let index of ['1', 'c', 'ks'].keys()) {
        console.log('keys', index);
    }
    for (let value of ['1', 'c', 'ks'].values()) {
        console.log('value', value);
    }
}

{
    for (let [index, value] of ['hls', 'xiaowu', '黄柳淞', '晨晨']) {
        console.log('values', index, value)
    }
}


{
    console.log([1, 2, 3, 4, 5].copyWithin(0, 2, 3))
}

{
    console.log([1, 2, 2, 1, 3, 3, 5].findIndex((item) => {
        return item > 3
    }))
}

{
    console.log('number', [1, 2, 3, 4, 5].includes(1))
    console.log('number', [1, 2, 3, 4, 5].includes(NaN))
}